package com.moli.iov.admin.service.impl;

import com.moli.iov.admin.service.IBaseCityService;
import com.moli.iov.base.model.dto.AddressDto;
import com.moli.iov.base.remote.IBaseCityRemoteService;
import com.moli.iov.rest.RestResponse;
import java.util.List;
import java.util.Map;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * The type Base city service.
 *
 * @author wanghualin
 * @date 2019 -10-17 16:51:06
 */
@Service
public class IBaseCityServiceImpl implements IBaseCityService {
  @Reference(group = "${service.group}", check = false)
  private IBaseCityRemoteService iBaseCityRemoteService;

  @Override
  public   RestResponse<List<AddressDto>>getProvinceAndCity() {
    return iBaseCityRemoteService.getProvinceAndCity();
  }

  @Override
  public RestResponse<List<AddressDto>> queryAllAddressDtoTree() {
    return iBaseCityRemoteService.queryAllAddressDtoTree();
  }
}
